package com.hsq.ndmall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hsq.ndmall.common.utils.PageUtils;
import com.hsq.ndmall.common.utils.R;
import com.hsq.ndmall.product.entity.CategoryEntity;

import java.util.List;
import java.util.Map;

/**
 * 类目表
 *
 * @author kate-chan
 * @email ccsu_loader@163.com
 * @date 2021-08-11 00:33:11
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    // 获取一级分类信息
    R findTopCategory();

    // 自定义4个分类-4个商品
    PageUtils getCategory2GoodsList(Integer page, Integer limit);
}

